package chapter3_1_ThreadLocalRandom;

import java.util.Random;

/**
 * 高并发时会造成大量线程进行自选操作,影响并发性能
 * @author huayuhao
 * @date 2020/12/16 15:27
 */
public class RandomTest {

    public static void main(String[] args) {

        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            System.out.println(random.nextInt(5));
        }


    }

}
